package com.vichat.workflow.entity;


import javax.persistence.*;

/***************
 *author: autogen
 *version: 2018-06-26 09:35:36.395
 */
@Entity
@Table(name = "WF_RESOURCE",catalog = "wfdb")
public class WfResource implements java.io.Serializable{

	private static final long serialVersionUID = 1L;
	


    public static final String TABLE = "WF_RESOURCE";

    /** */
	public static final String ALIAS_RES_ID = "res_id";
    /** */
	public static final String ALIAS_INS_FLOW_ID = "ins_flow_id";
    /** */
	public static final String ALIAS_INS_NODE_ID = "ins_node_id";
    /** */
	public static final String ALIAS_ATTR_CODE = "attr_code";
    /**资源名称 */
	public static final String ALIAS_RESOURCE_NAME = "resource_name";
    /**资源原始名称 */
	public static final String ALIAS_RESOURCE_ORIGINAL_NAME = "resource_original_name";
    /**资源类型描述 */
	public static final String ALIAS_RES_TYPE = "res_type";
    /**高 */
	public static final String ALIAS_H = "h";
    /**宽 */
	public static final String ALIAS_W = "w";
    /**时长 */
	public static final String ALIAS_L = "l";
    /**大小 */
	public static final String ALIAS_SIZE = "size";
    /**HASH值 */
	public static final String ALIAS_HASH = "hash";
    /**存储源 */
	public static final String ALIAS_STORE_SRC = "store_src";
    /**存储地址 */
	public static final String ALIAS_STORE_URL = "store_url";
    /**存储日期:YYYYMMDD */
	public static final String ALIAS_STORE_DATE = "store_date";
    /** */
	public static final String ALIAS_STATE = "state";
    /** */
	public static final String ALIAS_CREATE_TIME = "create_time";
    /** */
	public static final String ALIAS_UPDATE_TIME = "update_time";
    /** */
	public static final String ALIAS_RESOURCE_DATE = "resource_date";
    /** */
	public static final String ALIAS_LONGITUDE = "longitude";
    /** */
	public static final String ALIAS_LATITUDE = "latitude";
    /** */
	public static final String ALIAS_ADDRESS = "address";
	
	

 	@Id
@   GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "res_id", unique = true, nullable = false)
    public java.lang.Long resId;
  
 	@Column(name = "ins_flow_id")
    public java.lang.Long insFlowId;
  
 	@Column(name = "ins_node_id")
    public java.lang.Long insNodeId;
  
 	@Column(name = "attr_code")
    public java.lang.String attrCode;
  
 	@Column(name = "resource_name")
    public java.lang.String resourceName;
  
 	@Column(name = "resource_original_name")
    public java.lang.String resourceOriginalName;
  
 	@Column(name = "res_type")
    public java.lang.String resType;
  
 	@Column(name = "h")
    public java.lang.String h;
  
 	@Column(name = "w")
    public java.lang.String w;
  
 	@Column(name = "l")
    public java.lang.String l;
  
 	@Column(name = "size")
    public java.lang.Long size;
  
 	@Column(name = "hash")
    public java.lang.String hash;
  
 	@Column(name = "store_src")
    public java.lang.String storeSrc;
  
 	@Column(name = "store_url")
    public java.lang.String storeUrl;
  
 	@Column(name = "store_date")
    public java.lang.String storeDate;
  
 	@Column(name = "state")
    public java.lang.Long state;
  
 	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "create_time")
    public java.util.Date createTime;
  
 	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "update_time")
    public java.util.Date updateTime;
  
 	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "resource_date")
    public java.util.Date resourceDate;
  
 	@Column(name = "longitude")
    public java.lang.String longitude;
  
 	@Column(name = "latitude")
    public java.lang.String latitude;
  
 	@Column(name = "address")
    public java.lang.String address;
  





	public java.lang.Long getResId() {
		return this.resId;
	}
	
	public void setResId(java.lang.Long value) {
		this.resId = value;
	}

	public java.lang.Long getInsFlowId() {
		return this.insFlowId;
	}
	
	public void setInsFlowId(java.lang.Long value) {
		this.insFlowId = value;
	}

	public java.lang.Long getInsNodeId() {
		return this.insNodeId;
	}
	
	public void setInsNodeId(java.lang.Long value) {
		this.insNodeId = value;
	}

	public java.lang.String getAttrCode() {
		return this.attrCode;
	}
	
	public void setAttrCode(java.lang.String value) {
		this.attrCode = value;
	}

	public java.lang.String getResourceName() {
		return this.resourceName;
	}
	
	public void setResourceName(java.lang.String value) {
		this.resourceName = value;
	}

	public java.lang.String getResourceOriginalName() {
		return this.resourceOriginalName;
	}
	
	public void setResourceOriginalName(java.lang.String value) {
		this.resourceOriginalName = value;
	}

	public java.lang.String getResType() {
		return this.resType;
	}
	
	public void setResType(java.lang.String value) {
		this.resType = value;
	}

	public java.lang.String getH() {
		return this.h;
	}
	
	public void setH(java.lang.String value) {
		this.h = value;
	}

	public java.lang.String getW() {
		return this.w;
	}
	
	public void setW(java.lang.String value) {
		this.w = value;
	}

	public java.lang.String getL() {
		return this.l;
	}
	
	public void setL(java.lang.String value) {
		this.l = value;
	}

	public java.lang.Long getSize() {
		return this.size;
	}
	
	public void setSize(java.lang.Long value) {
		this.size = value;
	}

	public java.lang.String getHash() {
		return this.hash;
	}
	
	public void setHash(java.lang.String value) {
		this.hash = value;
	}

	public java.lang.String getStoreSrc() {
		return this.storeSrc;
	}
	
	public void setStoreSrc(java.lang.String value) {
		this.storeSrc = value;
	}

	public java.lang.String getStoreUrl() {
		return this.storeUrl;
	}
	
	public void setStoreUrl(java.lang.String value) {
		this.storeUrl = value;
	}

	public java.lang.String getStoreDate() {
		return this.storeDate;
	}
	
	public void setStoreDate(java.lang.String value) {
		this.storeDate = value;
	}

	public java.lang.Long getState() {
		return this.state;
	}
	
	public void setState(java.lang.Long value) {
		this.state = value;
	}

	public java.util.Date getCreateTime() {
		return this.createTime;
	}
	
	public void setCreateTime(java.util.Date value) {
		this.createTime = value;
	}

	public java.util.Date getUpdateTime() {
		return this.updateTime;
	}
	
	public void setUpdateTime(java.util.Date value) {
		this.updateTime = value;
	}

	public java.util.Date getResourceDate() {
		return this.resourceDate;
	}
	
	public void setResourceDate(java.util.Date value) {
		this.resourceDate = value;
	}

	public java.lang.String getLongitude() {
		return this.longitude;
	}
	
	public void setLongitude(java.lang.String value) {
		this.longitude = value;
	}

	public java.lang.String getLatitude() {
		return this.latitude;
	}
	
	public void setLatitude(java.lang.String value) {
		this.latitude = value;
	}

	public java.lang.String getAddress() {
		return this.address;
	}
	
	public void setAddress(java.lang.String value) {
		this.address = value;
	}


	
	public WfResource() {
	}
	
	public WfResource(boolean qryflag) {
	    if(qryflag){
	    		this.resId = null;
				this.insFlowId = null;
				this.insNodeId = null;
				this.attrCode = null;
				this.resourceName = null;
				this.resourceOriginalName = null;
				this.resType = null;
				this.h = null;
				this.w = null;
				this.l = null;
				this.size = null;
				this.hash = null;
				this.storeSrc = null;
				this.storeUrl = null;
				this.storeDate = null;
				this.state = null;
				this.createTime = null;
				this.updateTime = null;
				this.resourceDate = null;
				this.longitude = null;
				this.latitude = null;
				this.address = null;
			    }
	}


	public WfResource(
	    java.lang.Long inResId,
	    java.lang.Long inInsFlowId,
	    java.lang.Long inInsNodeId,
	    java.lang.String inAttrCode,
	    java.lang.String inResourceName,
	    java.lang.String inResourceOriginalName,
	    java.lang.String inResType,
	    java.lang.String inH,
	    java.lang.String inW,
	    java.lang.String inL,
	    java.lang.Long inSize,
	    java.lang.String inHash,
	    java.lang.String inStoreSrc,
	    java.lang.String inStoreUrl,
	    java.lang.String inStoreDate,
	    java.lang.Long inState,
	    java.util.Date inCreateTime,
	    java.util.Date inUpdateTime,
	    java.util.Date inResourceDate,
	    java.lang.String inLongitude,
	    java.lang.String inLatitude,
		java.lang.String inAddress
	 ) {
		super();
				this.resId = inResId;
				this.insFlowId = inInsFlowId;
				this.insNodeId = inInsNodeId;
				this.attrCode = inAttrCode;
				this.resourceName = inResourceName;
				this.resourceOriginalName = inResourceOriginalName;
				this.resType = inResType;
				this.h = inH;
				this.w = inW;
				this.l = inL;
				this.size = inSize;
				this.hash = inHash;
				this.storeSrc = inStoreSrc;
				this.storeUrl = inStoreUrl;
				this.storeDate = inStoreDate;
				this.state = inState;
				this.createTime = inCreateTime;
				this.updateTime = inUpdateTime;
				this.resourceDate = inResourceDate;
				this.longitude = inLongitude;
				this.latitude = inLatitude;
				this.address = inAddress;
			}





}

